// Author: Ivan Chau
package uk.ac.cam.kcic2.photonMap;
	
public class PhotonGenerator {
	
	public PhotonGenerator(){}
	
	public Photon[] generate(int number){
		
		Photon[] photons = new Photon[number];
		for (int i = 0; i < photons.length; i++){
			// generate some random parameters
			double x = Math.random()*2 - 1;
			double y = Math.random()*2 - 1;
			double z = Math.random()*2 - 1;
			
			double[] position = new double[]{x, y, z};
			photons[i] = new Photon(position, null, null, true);
		
		}
		
		return photons;
	}
	
}	